﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ToodledoAPI.Exceptions
{
    public class locationException:ToodledoException
    {

        public locationException(string JsonReturn) : base("JsonReturn") { }

        public override string Message
        {
            get
            {
                switch (base.errorCode)
                {
                    case 1:
                        return "You did not specify a key for authentication.";
                    case 2:
                        return "The authentication key that you provided has expired or is invalid.";
                    case 3:
                        return "No location was specified. The id number is a required paramater.";
                    case 4:
                        return "The location specified in your call does not exist.";
                    case 5:
                        return "You tried to add or edit a location with a name that already exists.";
                    case 6:
                        return "The user has the maximum number of locations, so you can't add any more.";
                    case 7:
                        return "You tried to add or edit a location without a name. A location must have a name.";
                    case 8:
                        return "You tried to edit a location with values that already exist. Nothing was changed. If you get this a lot, you are making unnecessary edits.";
                    default:
                        return UnknownMessage;
                }
            }
        }
    }
}
